There are two defined atom types: 'idsc' , which contains an image description, and 'idat' , which contains the image data. This is illustrated in Figure 16-1 . For a JPEG image, the image description atom contains a QuickTime image description describing the JPEG image's size, resolution, depth, and so on, and the image data atom contains the actual JPEG compressed data, as shown in Table 16-1 .
In QuickTime 4, there is a new optional atom type: 'iicc' , which can store a ColorSync profile. For more information about storing ColorSync profiles, refer to the section "Getting ColorSyncProfiles" .
Figure 1 An `idsc' atom followed by an `idat' atom
Table 1 A QuickTime Image file containing JPEG compressed data
A QuickTime Image file can also contain other atoms. For example, it can contain single-fork preview atoms.
The exact order and size of atoms is not guaranteed to match the example in Table 16-1 . Applications reading QuickTime image files should always use the atom size to traverse the file and ignore atoms of unrecognized types.
Like QuickTime movie files, QuickTime Image files are big-endian. However, image data is stored in the same byte order as usually specified by the particular compression format.
| Previous | Chapter Contents | Chapter Top | Next |